<? 
header('Content-Type: text/html; charset=UTF-8');
  header ("Cache-Control: no-cache, must-revalidate"); //no guardar en CACHE
   header ("Pragma: no-cache");

include("./config.inc.php");
include("./clases.php");

session_start();
include("./util.php");

if(empty($_SESSION))
	header("Location:index.php"); 	

if(!$_SESSION["obj_sesion"]->compruebaSesion())
	header("Location:salir.php?caduca=on"); 

		//$usuario = consultaSimple('seguridad_usuarios su LEFT JOIN seguridad_tipos st USING (id_tipo)','su.id_usuario = '.$_SESSION["obj_sesion"]->getIdUsuario(),'','st.tipo as tipo');
		$tipo = $_SESSION["obj_sesion"]->getTipo();
	
	if(isset($_GET['salir']))
	{
		echo '<script> alert("La mesa estaba creada, pero llevaba mucho tiempo abierta. Se ha cerrado automaticamente"); </script>';
	}
?>

<!DOCTYPE html>
<html><head>
<title>Transportes Lobato Valadés</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link id="css_dinamico" rel="stylesheet" type="text/css" href="css/estilo.css" />

<!-- Hoja Estilo Comun -->

<script language="JavaScript" type="text/javascript"> var DIR_LOCAL="<?php echo $_LOCALHOST;?>";</script>


<!-- Librerias Comunes -->
<script language="JavaScript" src="js/ajax.js" type="text/javascript"></script>
<script language="JavaScript" src="js/funciones.js" type="text/javascript"></script>

<!-- Libreria JQuery -->
<script type="text/JavaScript" language="javascript" src="js/jquery/jquery-1.7.2.min.js"></script>

<!-- Libreria JQuery - JSON -->
<script type='text/javascript' src='js/jquery/jquery.json-2.2.min.js'></script>

<link rel="stylesheet" type="text/css" media="screen" href="js/jquery/ui/css/lobato-valades/jquery-ui-1.8.20.custom.css"> 
<script type="text/JavaScript" language="javascript" src="js/jquery/ui/js/jquery-ui-1.8.20.custom.min.js"></script>

<!-- Libreria SimpleModal -->
<link rel="stylesheet" type="text/css" media="screen" href="js/jquery/simpleModal/css/basic2.css" />
<script src="js/jquery/simpleModal/js/jquery.simplemodal.js" type="text/javascript"></script>

<!-- Libreria JQuery - MULTISELECT -->
<link rel="stylesheet" type="text/css" media="screen" href="js/jquery/multiselect/jquery.multiselect.css" />
<script type='text/javascript' src='js/jquery/multiselect/jquery.multiselect.js'></script>

<!-- Libreria JQuery Timepicker -->
<script type="text/JavaScript" language="javascript" src="js/jquery/jquery-ui-timepicker-addon-0.6.2.js"></script>

<!-- Libreria JGrid -->
<!--<link rel="stylesheet" type="text/css" media="screen" href="js/jquery/jdgrid/css/ui.jqgrid.css" /> -->
<link rel="stylesheet" type="text/css" media="screen" href="js/jquery/jquery.jqGrid-4.3.1/css/ui.jqgrid.css" />
<script language="javascript" src="js/jquery/jquery.jqGrid-4.3.1/js/jquery.jqGrid.src.js"></script>

<script src="js/jquery/jdgrid/grid.locale-sp.js" type="text/javascript"></script>
<!--<script src="js/jquery/jdgrid/jquery.jqGrid.min.js" type="text/javascript"></script> -->
<script src="js/jquery/jdgrid/src/grid.common.js" type="text/javascript"></script>
<script src="js/jquery/jdgrid/src/grid.formedit.js" type="text/javascript"></script>
<script src="js/jquery/jdgrid/src/grid.custom.js" type="text/javascript"></script>
<script src="js/jquery/jdgrid/src/grid.celledit.js" type="text/javascript"></script>

<!-- Libreria Ajaxcombobox -->
<script src="js/jquery/combobox/js/jquery.ajaxComboBox.3.5.3.js" type="text/javascript"></script>
<script src="js/jquery/combobox/geografia.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="js/jquery/combobox/css/jquery.ajaxComboBox.css" />
<!-- Libreria Acordeon de menu -->
<script type="text/javascript" src="js/jquery/Acordeon/jquery.accordion.js"></script>
<!-- Libreria modal para poner tamaño y demas -->
<script src="js/jquery/modal/funcion.js" type="text/javascript"> </script>
<!-- TABS JQuery -->
<!-- <script src="js/jquery/tabs/jquery.history_remote.pack.js" type="text/javascript"></script>
<script src="js/jquery/tabs/jquery.tabs.pack.js" type="text/javascript"></script>
<link rel="stylesheet" href="js/jquery/tabs/jquery.tabs.css" type="text/css" media="print, projection, screen">-->
<script type="text/javascript">
    $(document).ready(function() {
		$('#contenedor_principal').css('display','block');
		$('#contenedor_principal').load('inventario/index.php');
    });
		
</script>
</head>
<body style="margin:0px;">

<table border="0" align="center"  cellpading="0" cellspacing="0" id="tabla_principal_fcontenido">
  <tr>
    <td colspan="3" height="50" style="vertical-align:top;" id="cabecera_superior"><? include("fsuperior.php");?></td>
  </tr>
  <tr>
    <td width="250" height="500" style="vertical-align:top;">
		<?php include("menu.php"); ?>
     </td>
    <td width="800" style="vertical-align:top;" >
	<table width="790" border="0" cellspacing="0" cellpadding="0">
	  <tr>
	    <td height="47" id="barra_busqueda"><table width="785" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="392"  id="ruta_seguida">&nbsp;</td>
	        <td width="200" height="30" id="fondo_busqueda2">
              
            </td>
	        <td width="20">&nbsp;</td>
	        </tr>
	      </table></td>
	    </tr>
	  </table>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td valign="top"></td></tr>
  <tr><td valign="top" id="contenedor_principal">
  </td></tr></table>
  <table width="800" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" id="pie_contenedor"></td></tr></table>

</td>
    <td width="0" id="td_auxiliar" style="vertical-align:top;"><div id="info_auxiliar" ><? // include "fderecha.php";?></div></td>
  </tr>
  <tr>
    <td colspan="3" height="40"><? //include ("finferior.php");?></td>
  </tr>
</table>
</body>
</html>



<? /*
<script language="javascript">cargar_modulo('mesas/index.php'); 




$(document).ready(function(){
	//$('#buscar').click(function(){if($('#buscar').val()=='Buscar') {$('#buscar').val('');}});
	//$('#buscar').blur(function(){if($('#buscar').val()=='') {$('#buscar').val('Buscar');}});
	//crear_rss();
	
	//mostrar_guardando();
	//finalizar_guardando("Guardado la informacion");
	});
</script>
*/?>
